//
//  WebCell.m
//  BuffetNews
//
//  Created by 大大大鸿哥 on 14/11/4.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "WebCell.h"

@implementation WebCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //在cell的初始化方法中对自定义视图初始化
        //在初始化的时候，可以不指定frame
        self.MYtextLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 98, 20)];
        self.MYview = [[UIView alloc]initWithFrame:CGRectMake(20, 10, self.contentView.frame.size.width - 98, 20)];
        
        
        [self.contentView addSubview:self.MYtextLabel];
        [self.contentView addSubview:self.MYview];
        
        [_MYview release];
    }
    return self;
}
- (void)dealloc
{
    [_MYtextLabel release];
    [_MYview release];
    [super dealloc];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
